package com.yunfeng.web.service;

import com.querydsl.core.types.Predicate;
import com.yunfeng.web.pojo.HouseInfo;
import com.yunfeng.web.repository.HouseInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class HouseInfoService {

    @Autowired
    HouseInfoRepository houseInfoRepository;

    public Page<HouseInfo> findSearch(Predicate predicate, Pageable pageable) {
        return houseInfoRepository.findAll(predicate, pageable);
    }

}
